from process import db_connect
from process import baseFunction as bf
import json
from process.Cronb_logs import PCronbClose

def get_cronb_closed_log() -> str:     
    # 构造返回结果
    result_data = PCronbClose.get_cronb_closed()   
    result = db_connect.R(code=200, success=True,
                          msg="Data fetched successfully", data=result_data)

    json_result = json.dumps(result, cls=bf.CustomEncoder)  
    return json_result